package com.server.controller;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Date;

@RestController
public class TestController {

    @RequestMapping(value = "/test")
    public String test(){
        return "Test ok";
    }

    @RequestMapping(value = "/date")
    public Date soutDate(){

        Date date = new Date();

        System.out.println(date);

        return date;
    }



    @RequestMapping(value = "/test2")
    public String test1(){
        return "测试merge";
    }


}
